package ink.yuanchu.picachoframework.service.bo;

import com.baomidou.mybatisplus.extension.service.IService;
import ink.yuanchu.picachoframework.entity.Role;
import ink.yuanchu.picachoframework.entity.bo.RoleAndPermissions;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author ziyuan
 * @Date: 2021/03/20/12:54
 * @Description:
 */
public interface RoleBO extends IService<Role> {

    /**
     * 根据roleId查找
     * @param roleId
     * @return
     */
    Role findByRoleId(String roleId);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Role selectById(String id);

    /**
     * 查询所有角色
     * @return
     */
    List<Role> selectAll();
}
